package com.ruantu.clothing.entity;

import com.ruantu.clothing.entity.report.Foot;

/**
 * @author tao
 */
public class PageBean {

    private Integer page;
    private Integer rows;
    private int start;
    private int total;
    private String key;
    private String sort;
    private String order;
    private String jgId;
    private String periodId;
    private String wldwId;
    private String financeId;
    private String nj;
    private String stime;
    private String etime;
    private Integer type;
    private Integer chukuleixing;
    private String year;
    private String season;
    private String brand;
    private Foot foot;
    private String fslx;

    public String getFslx() {
        return fslx;
    }

    public void setFslx(String fslx) {
        this.fslx = fslx;
    }

    public Foot getFoot() {
        return foot;
    }

    public void setFoot(Foot foot) {
        this.foot = foot;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getSeason() {
        return season;
    }

    public void setSeason(String season) {
        this.season = season;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Integer getChukuleixing() {
        return chukuleixing;
    }

    public void setChukuleixing(Integer chukuleixing) {
        this.chukuleixing = chukuleixing;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getStime() {
        return stime;
    }

    public void setStime(String stime) {
        this.stime = stime;
    }

    public String getEtime() {
        return etime;
    }

    public void setEtime(String etime) {
        this.etime = etime;
    }

    public String getNj() {
        return nj;
    }

    public void setNj(String nj) {
        this.nj = nj;
    }

    public String getFinanceId() {
        return financeId;
    }

    public void setFinanceId(String financeId) {
        this.financeId = financeId;
    }

    public String getWldwId() {
        return wldwId;
    }

    public void setWldwId(String wldwId) {
        this.wldwId = wldwId;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getStart() {
        start = (getPage() - 1) * getRows();
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public Integer getPage() {
        if (page == null || page < 1) {
            page = 1;
        }
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        if (rows == null || rows < 1) {
            rows = 50;
        }
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "page=" + page +
                ", rows=" + rows +
                ", start=" + start +
                ", total=" + total +
                '}';
    }


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getJgId() {
        return jgId;
    }

    public void setJgId(String jgId) {
        this.jgId = jgId;
    }

    public String getPeriodId() {
        return periodId;
    }

    public void setPeriodId(String periodId) {
        this.periodId = periodId;
    }
}
